package com.eadaula05.arquivos;
import java.io.*;

public class LerArquivo1 {
	public static void main(String[] args){
		try{
			//File f = new File("C:\\info\\dados.txt");
			File f = new File("dados.txt");
			BufferedReader buff = new BufferedReader(new FileReader(f));
			
			String text = null;
			while ((text = buff.readLine()) != null){
				System.out.println(text);
			}
			buff.close();
		} catch (IOException ex){
			System.out.println("Ocorreu um erro!");
		}
		
	}
}
